package com.kangfu.api.controller;

import com.kangfu.api.interceptor.AuthorizationInterceptor;
import com.kangfu.common.model.AjaxResult;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/order")
public class OrderController {

    /**
     *
     * @param userId
     * @param type 订单类型：0|所有，1|待付款，2|待发货，3|待收货
     * @param page 页码
     * @return
     */
    @GetMapping("/list")
    public AjaxResult list(@RequestAttribute(AuthorizationInterceptor.LOGIN_USER_ID) int userId, @RequestParam(name = "type", defaultValue = "0") int type,  @RequestParam(name = "page", defaultValue = "1") int page) {

        return AjaxResult.success();
    }
}
